package com.google.gwt.mobile.widgets.ui;

import java.util.Iterator;

import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.HasWidgets;
import com.google.gwt.user.client.ui.Widget;

/**
 * The Class Slide.
 */
public class Slide extends TransitionWidget implements HasWidgets {

  protected FlowPanel _panel = new FlowPanel();

  /**
   * Instantiates a new slide.
   */
  public Slide() {
    initWidget(_panel);
    setStyleName("Slide");
  }

  /*
   * (non-Javadoc)
   * 
   * @see
   * com.google.gwt.user.client.ui.HasWidgets#add(com.google.gwt.user.client
   * .ui.Widget)
   */
  @Override
  public void add(final Widget w) {
    _panel.add(w);
  }

  /*
   * (non-Javadoc)
   * 
   * @see com.google.gwt.user.client.ui.HasWidgets#clear()
   */
  @Override
  public void clear() {
    _panel.clear();

  }

  /*
   * (non-Javadoc)
   * 
   * @see com.google.gwt.user.client.ui.HasWidgets#iterator()
   */
  @Override
  public Iterator<Widget> iterator() {
    return _panel.iterator();
  }

  /*
   * (non-Javadoc)
   * 
   * @see
   * com.google.gwt.user.client.ui.HasWidgets#remove(com.google.gwt.user.client
   * .ui.Widget)
   */
  @Override
  public boolean remove(final Widget w) {
    return _panel.remove(w);
  }

}
